package edu.sctu.zhoumengxue.day201505.day20150531.practice;

/**
 * Created by user12 on 2015/5/31.
 */


/*使用compareTo用法*/
public class Main {
    public static void main(String[] args) {
        int number1 = 10;
        int number2 = 20;
        int num = String.valueOf(number1).compareTo(String.valueOf(number2));
        if(num<0)
            System.out.println("yes");
        else {if(num == 0)
            System.out.println("equal");
            else
            System.out.println("no");
        }





    }

}
